typedef struct stProfile{


	unsigned char ucHEAD1[40];
	unsigned char ucHEAD2[40];
	unsigned char ucHEAD3[40];

	unsigned   char ucTID[8];
	unsigned char  ucMID[15];
	unsigned char SerialNum[8];
	

	unsigned char ucTMK1[16];
	unsigned char ucTMK2[16];
	unsigned char ucTMK3[16];

	unsigned char ucTWK1[16];
	unsigned char ucTWK2[16];
	unsigned char ucTWK3[16];

	unsigned char ucDes;
	unsigned char uc3Des;

	unsigned char ucSkmt;
	unsigned char ucManual;
	//    unsigned char timeSwipe[2];
    //unsigned char timepin[2];




} stProfile;
#define SIZE_PROFILE      sizeof (stProfile)


extern int PasswordEntry(char *pwd,int line, int col,int nMinLen,
					   int nMaxLen, int instar, int nTimeout );
extern void SVC_DSP_2_HEX (unsigned char  * src, unsigned char * dest, unsigned long num_digit);
extern void SVC_HEX_2_DSP(unsigned char  * src, unsigned char * dest,int num_digit);					   
extern int inGet3DESPin(unsigned char *szPAN, char * szPin , int lenpin,unsigned char *ePIN, unsigned char *MKin,int lenMk, unsigned char *WKin, int lenWK);
extern unsigned char ucSelectData(unsigned char * buff, int * len);
extern unsigned char ucSelectDataTms(unsigned char * buff, int * len, int type);
extern stProfile  * profile(void);


